var atm = {}

atm.loadMyCards = function () {
    $.get("/card/listMyCard.do", {
    }, function (xx) {
        if (xx.code != 1000) {
            alert(xx.message);
            return;
        }

        var msg = '<option value="no">请选择银行卡</option>';
        var cards = xx.data;
        for (var i=0; i<cards.length; i++) {
            var card = cards[i];
            msg += ' <option value="'+card.cardId+'">'+card.cardNum+'</option>';
        }
        $('#cardSelect').html(msg);
    });
}

atm.loadMyCards();